Sync build-aux/update-copyright from Gnulib
authorStefan Kangas <stefankangas@gmail.com>
Thu, 20 Feb 2025 10:14:35 +0000 (11:14 +0100)
committerStefan Kangas <stefankangas@gmail.com>
Sun, 23 Feb 2025 19:47:34 +0000 (20:47 +0100)
* build-aux/update-copyright: Copy from Gnulib.  This fixes a bug
where troff markers were introduced in ChangeLog files.
(Do not merge to master.)

build-aux/update-copyright

index 413a0c4a731ffb20cad44e37836689051689c120..124c7d2e423dc3b3142370a80e5aca8634b82406 100755 (executable)
@@ -47,8 +47,8 @@
 # Each file's copyright statement must be formatted correctly in
 # order to be recognized.  For example, each of these is fine:
 #
-#   Copyright @copyright{} 1990-2005, 2007-2009, 2025 Free Software
-#   Foundation, Inc.
+#   Copyright @copyright{} 1990-2005, 2007-2009, 2025 Free Software Foundation,
+#   Inc.
 #
 #   # Copyright (C) 1990-2005, 2007-2009 Free Software
 #   # Foundation, Inc.
 eval 'exec perl -wSx -0777 -pi "$0" "$@"'
      if 0;
 
-my $VERSION = '2024-01-15.18:30'; # UTC
+my $VERSION = '2025-01-01.07:36'; # UTC
 # The definition above must lie within the first 8 lines in order
 # for the Emacs time-stamp write hook (at end) to update it.
 # If you change this file with Emacs, please let the write hook
@@ -235,7 +235,7 @@ while (/(^|\n)(.{0,$prefix_max})$copyright_re/cg)
             else
               {
                 my $ndash = ($ARGV =~ /\.tex(i(nfo)?)?$/ ? "--"
-                             : $ARGV =~ /\.(\d[a-z]*|man)$/ ? "\\(en"
+                             : $ARGV =~ /\.(\d[a-z]*|man)(\.in)?$/ && $ARGV !~ /ChangeLog\./ ? "\\(en"
                              : "-");
 
                 $stmt =~
@@ -298,7 +298,7 @@ if (!$found)
 # coding: utf-8
 # mode: perl
 # indent-tabs-mode: nil
-# eval: (add-hook 'before-save-hook 'time-stamp)
+# eval: (add-hook 'before-save-hook 'time-stamp nil t)
 # time-stamp-line-limit: 200
 # time-stamp-start: "my $VERSION = '"
 # time-stamp-format: "%:y-%02m-%02d.%02H:%02M"